package com.platform.modules.chat.dao;

import com.platform.modules.chat.domain.ChatMsg;
import com.platform.modules.chat.vo.MsgVo;
import com.platform.modules.push.vo.PushBodyVo;
import org.springframework.stereotype.Repository;
import com.platform.common.web.dao.BaseDao;

import java.util.List;

/**
 * <p>
 * 聊天消息 数据库访问层
 * q3z3
 * </p>
 */
@Repository
public interface ChatMsgDao extends BaseDao<ChatMsg> {

    /**
     * 查询列表
     *
     * @return
     */
    List<ChatMsg> queryList(ChatMsg chatMsg);


    Integer clearRecord(String beforeToday);

    List<MsgVo> queryUserRecord(Long fromId, Long toId, Integer page, Integer pageSize);
    List<MsgVo> queryGroupRecord(Long toId, Integer page, Integer pageSize);
}
